<?php
namespace app\controller;

use app\BaseController;
use think\exception\HttpException;
use think\facade\Log;
use think\facade\Event;
use think\facade\View;
use think\facade\Cache;
use think\facade\Db;

class Index extends BaseController
{
    public function set(){
        Cache::set('name', 'thinkphp8', 10);
    }  

    public function get(){
        
       
    } 

    public function index() {
        return json(['msg'=>'success']);
    }
}
